package com.atguigu.day05;

import java.lang.reflect.*;

public class Example9 {
    public static void main(String[] args) {
        var t1 = Klass.class.getGenericInterfaces()[0];
        var t2 = ((ParameterizedType)t1).getActualTypeArguments()[0];
        System.out.println(t2);
    }

    public interface Foo<T> {
    }

    public static class Klass implements Foo<String> {

    }
}
